package com.family.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.family.service.IDemoService;

@Controller
@RequestMapping("/singler")
public class SinglerController {
	private final Logger logger = LoggerFactory.getLogger(SinglerController.class);
	@Autowired
	private IDemoService demoService;
	@RequestMapping("query")
	public ModelAndView query(int id){
		logger.info("enter query controller");
		demoService.query(id);
		
		return new ModelAndView("result");
	}
}
